package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.HrNewsInfo;
import com.foreveross.vo.NewsSearch;
import com.foreveross.vo.common.PageVo;


public interface HrNewsInfoDAO  {	
	
	public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public List<HrNewsInfo> findCodeList(String title,String houseId,String publisher,String startTime,String endTime,String type, int pageIndex,int pageSize,String userId) throws Exception;
	
	public long findCodeListCount(String title,String houseId,String publisher,String startTime,String endTime,String type,String userId) throws Exception;
	
	public long findTypeNewsInfoListCount(String typeName, String weixinId) throws Exception;
	
	public List<HrNewsInfo> findTypeNewsInfoList(String typeName, String weixinId,
			int currentPage, int pageSize) throws Exception;

	public  PageVo<HrNewsInfo> searchHrNews(String searchKey,String type, String currentPage,
			String pageSize)throws Exception;
	
	public List<NewsSearch> getNewsSearch(String newsSearch) throws Exception;

	public List<NewsSearch> findNewsSearchList(String type,
			String pageSize)throws Exception;
}